//
//  AppDelegate.swift
//  103Photos
//
//  Created by 舒磊明 on 2019/1/31.
//  Copyright © 2019年 舒磊明. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {

        window = UIWindow(frame: UIScreen.main.bounds)
        window?.backgroundColor = #colorLiteral(red: 1.0, green: 1.0, blue: 1.0, alpha: 1.0)
        let layout = UICollectionViewFlowLayout()
        let controller = MainViewController(collectionViewLayout: layout)
        controller.layoutFlow = layout
        let navigation = UINavigationController(rootViewController: controller)
        // 导航栏透明
        navigation.navigationBar.isTranslucent = false
        window?.rootViewController = navigation
        window?.makeKeyAndVisible()
        
        return true
    }
}

